<?php

/**
 * @author LongInfotech@gmail.com
 * @copyright 2012
 */

class M_News extends CI_Model{
    public function __construct(){
        parent::__construct();
        $this->load->database();
    }
    public function loadNews(){
        $query=$this->db->get("news");
        return $query->result_array();
    }
}

?>